import 'package:flutter/material.dart';
import 'package:share_fit/app/controllers/device/dail/dial_model.dart';
import 'package:share_fit/app/helper/ext/tr_ext.dart';
import 'package:share_fit/generated/locales.g.dart';

class DialState {

  List<DialModel> lists = [];
  List<dynamic> downlodLists = []; // 已经下载的表盘列表
  int totalCount = 0;
  bool flag = true;
  double uploadFileValue=0;
  bool isUploadFile = false;
  String uploadFileText = '';
  bool hasPermisson = false;
  bool isShowSelected = false;
  bool selectedAll = false;
  int limitSelectedIndex = 0;

  Map<dynamic, dynamic> watchFaceParams = {}; //表盘信息
  int watchFaceCount = 0;
  List<dynamic> watchFaceInfo = []; //手表上表盘列表（id，version）

  int positionIndex = 0;
  bool imageEdit = false;
  String dialImagePath = '';
  Map imageWatchFace = {};
  double maxWidth = 0;
  double maxHeight = 0;
  int maxCount=1; //相册表盘最多支持个数
  List serverWatchFace = [];
  Map serverWatchFaceInfo = {};
  List serverWatchFacePosition = [];
  String widgetPosition1Bg = "";
  String widgetPosition2Bg = "";
  Map imageInfoList = {};
  bool updatePosition = false;

  int height = 0;
  int width = 0;
  int maxCapacity = 0;
  int shape = 0;
  int cornerRadius = 0;

  static int POSITION_TOP_CENTER = 1;
  static int POSITION_BOTTOM_CENTER = 2;
  static int POSITION_MIDDLE_CENTER = 3;

  List<Tab> dialTabs = [
    Tab(text: LocaleKeys.dial_center.ts,),
    Tab(text: LocaleKeys.dial_my.ts,),
    Tab(text: LocaleKeys.dial_custom.ts,),
  ];

  DialState() {
    ///Initialize variables
  }
}
